package com.topup.mapper;

import com.topup.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
  //登录
@Select("SELECT * FROM tb_user where name=#{name} and pwd =#{pwd}")
     public User Userlogin(@Param("name") String name, @Param("pwd") String pwd);

@Insert("INSERT INTO tb_user(name,pwd,num,solo) VALUES (#{name},#{pwd},#{num},#{solo})")
    public  int adduser( User user);






}
